package com.flurry.android;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;

final class aw
{
  private static final String p = aw.class.getSimpleName();

  private static PackageInfo h(Context paramContext)
  {
    Object localObject = null;
    if (paramContext != null);
    try
    {
      PackageInfo localPackageInfo = paramContext.getPackageManager().getPackageInfo(paramContext.getPackageName(), 20815);
      localObject = localPackageInfo;
      return localObject;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      cy.c(p, "Cannot find package info for package: " + paramContext.getPackageName());
    }
    return null;
  }

  private static ApplicationInfo i(Context paramContext)
  {
    Object localObject = null;
    if (paramContext != null);
    try
    {
      ApplicationInfo localApplicationInfo = paramContext.getPackageManager().getApplicationInfo(paramContext.getPackageName(), 128);
      localObject = localApplicationInfo;
      return localObject;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      cy.c(p, "Cannot find application info for package: " + paramContext.getPackageName());
    }
    return null;
  }

  public static String j(Context paramContext)
  {
    PackageInfo localPackageInfo = h(paramContext);
    if ((localPackageInfo != null) && (localPackageInfo.packageName != null))
      return localPackageInfo.packageName;
    return "";
  }

  public static String k(Context paramContext)
  {
    PackageInfo localPackageInfo = h(paramContext);
    if ((localPackageInfo != null) && (localPackageInfo.versionName != null))
      return localPackageInfo.versionName;
    return "";
  }

  public static Bundle l(Context paramContext)
  {
    ApplicationInfo localApplicationInfo = i(paramContext);
    if ((localApplicationInfo != null) && (localApplicationInfo.metaData != null))
      return localApplicationInfo.metaData;
    return Bundle.EMPTY;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.aw
 * JD-Core Version:    0.6.2
 */